<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>用车申请</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css">
</head>
<body style="background: transparent;">
    <div class="form-container">
        <h2>用车申请</h2>

        <form  action="<%=request.getContextPath() %>/ddm/addServlet"  id="vehicleUsageForm" style="display: block;" method="post">

                <input type="text" id="username" name="username" value="${user.username}" class="form-control" placeholder="请输入用户名" hidden="hidden" required>


                <input type="text" id="password" name="password" value="${user.password}" class="form-control" placeholder="请输入密码" hidden="hidden" required>
            <div class="form-group">
                <label for="status">车辆</label>
                <select id="status" name="message" class="form-control" required>
                    <c:forEach items="${VehKy}" var="VehListKy">
                        <option value="${VehListKy[0]} - ${VehListKy[1]}">${VehListKy[0]} - ${VehListKy[1]}</option>
                    </c:forEach>
                </select>
            </div>
            <div class="form-group">
                <label for="stime">开始时间</label>
                <!-- 开始时间显示当前日期 -->
                <input type="datetime-local" id="stime" name="stime" class="form-control"  required>
            </div>
            <div class="form-group">
                <label for="otime">结束时间</label>
                <!-- 结束时间显示当前日期 -->
                <input type="datetime-local" id="otime" name="otime" class="form-control" required>
            </div>
            <div class="form-group">
                <label for="shiyong">用途</label>
                <input type="text" id="shiyong" name="shiyong" class="form-control" placeholder="请输入用途" required>
            </div>
            <div class="form-group">
                <label>车辆状况</label>
                <select name="status" class="form-control" required>
                    <option>申请</option>
                    <option>填报</option>
                    <option>还车登记</option>
                </select>
            </div>
            <div class="form-footer">
                <button type="submit" class="btn">提交报告</button>
            </div>
        </form>
    </div>
</body>
</html> 